package com.lhc.bean.factorybean;

import com.lhc.bean.Student;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

/**
 * @author LuHuanCheng
 * 类说明：
 */
//@Component
public class FactoryBeanDemo implements FactoryBean {
    @Override
    public Object getObject() {
        return new Student();
    }

    @Override
    public Class<?> getObjectType() {
        return Student.class;
    }
}